package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserDao {
    public User findByUsername(String username) ;

    public void add(User use);

    public PageResult findPage(QueryPageBean queryPageBean);

    public void deleteById(Integer id);

    public List<User> findAll();

    public void edit(User user);

    public User findById(Integer id);


    public  void setUserAndRole(Map map);

    public  Page<User> selectByCondition(String queryString);

    public List<Integer> findRoleIdsByUserId(Integer id);

    public void deleteAssociation(Integer id);

     public List<Role> findRoleAll();

    public long findCountByUser(Integer id);

    List<Menu> findChildrenByMenuId(Map map);
}


